<?php

/**
 * Enter description here...
 *
 * @param unknown_type $content
 * @return unknown
 */
function comment_decode($content)
{
	$emoticon 		= array(
							'<img src="/css/emoticon/1.gif" alt="">',
							'<img src="/css/emoticon/2.gif" alt="">',
							'<img src="/css/emoticon/3.gif" alt="">',
							'<img src="/css/emoticon/4.gif" alt="">',
							'<img src="/css/emoticon/5.gif" alt="">',
							'<img src="/css/emoticon/6.gif" alt="">',
							'<img src="/css/emoticon/7.gif" alt="">',
							'<img src="/css/emoticon/8.gif" alt="">',
							'<img src="/css/emoticon/9.gif" alt="">',
							'<img src="/css/emoticon/10.gif" alt="">',
							'<img src="/css/emoticon/11.gif" alt="">',
							'<img src="/css/emoticon/12.gif" alt=""">',
							'<img src="/css/emoticon/13.gif" alt="">',
							'<img src="/css/emoticon/14.gif" alt="">',
							'<img src="/css/emoticon/15.gif" alt="">',
							'<img src="/css/emoticon/16.gif" alt="">',
							'<img src="/css/emoticon/17.gif" alt="">',
							'<img src="/css/emoticon/18.gif" alt="">',
							'<img src="/css/emoticon/19.gif" alt="">',
							'<img src="/css/emoticon/20.gif" alt="">',
							'<img src="/css/emoticon/21.gif" alt="">',
							'<img src="/css/emoticon/22.gif" alt="">',
							'<img src="/css/emoticon/23.gif" alt="">',
							'<img src="/css/emoticon/24.gif" alt="">',
							'<img src="/css/emoticon/25.gif" alt="">',
							'<img src="/css/emoticon/26.gif" alt="">',
							'<img src="/css/emoticon/27.gif" alt="">',
							'<img src="/css/emoticon/28.gif" alt="">',
							'<img src="/css/emoticon/29.gif" alt="">',
							'<img src="/css/emoticon/30.gif" alt="">',
							'<img src="/css/emoticon/31.gif" alt="">',
							'<img src="/css/emoticon/32.gif" alt="">',
							'<img src="/css/emoticon/33.gif" alt="">',
		                    '<img src="/css/emoticon/34.gif" alt="">',
							'<img src="/css/emoticon/35.gif" alt="">',
							'<img src="/css/emoticon/36.gif" alt="">',
							'<img src="/css/emoticon/37.gif" alt="">',
							'<img src="/css/emoticon/38.gif" alt="">',
							'<img src="/css/emoticon/39.gif" alt="">',
							'<img src="/css/emoticon/40.gif" alt="">',
							'<img src="/css/emoticon/41.gif" alt="">',
							'<img src="/css/emoticon/42.gif" alt="">',
							'<img src="/css/emoticon/43.gif" alt="">',
							'<img src="/css/emoticon/44.gif" alt="">',
							'<img src="/css/emoticon/45.gif" alt="">',
							'<img src="/css/emoticon/46.gif" alt="">',
							'<img src="/css/emoticon/47.gif" alt="">',
							'<img src="/css/emoticon/48.gif" alt="">',
	                        '<img src="/css/emoticon/49.gif" alt="">',
							'<img src="/css/emoticon/50.gif" alt="">',
							'<img src="/css/emoticon/51.gif" alt="">',
							'<img src="/css/emoticon/52.gif" alt="">',
							'<img src="/css/emoticon/53.gif" alt="">',
							'<img src="/css/emoticon/54.gif" alt="">',
							'<img src="/css/emoticon/55.gif" alt="">',
							'<img src="/css/emoticon/56.gif" alt="">',
							'<img src="/css/emoticon/57.gif" alt="">',
							'<img src="/css/emoticon/58.gif" alt="">',
							'<img src="/css/emoticon/59.gif" alt="">',
							'<img src="/css/emoticon/60.gif" alt="">',
							'<img src="/css/emoticon/61.gif" alt="">',
							'<img src="/css/emoticon/62.gif" alt="">',
	                        '<img src="/css/emoticon/63.gif" alt="">',
	                        '<img src="/css/emoticon/64.gif" alt="">',
							'<img src="/css/emoticon/65.gif" alt="">',
							'<img src="/css/emoticon/66.gif" alt="">',
							'<img src="/css/emoticon/67.gif" alt="">',
							'<img src="/css/emoticon/68.gif" alt="">',
							'<img src="/css/emoticon/69.gif" alt="">',
							'<img src="/css/emoticon/70.gif" alt="">',
	                        '<img src="/css/emoticon/71.gif" alt="">',
							'<img src="/css/emoticon/72.gif" alt="">',
							'<img src="/css/emoticon/73.gif" alt="">',
							'<img src="/css/emoticon/74.gif" alt="">',
							'<img src="/css/emoticon/75.gif" alt="">',
							'<img src="/css/emoticon/76.gif" alt="">',
							'<img src="/css/emoticon/77.gif" alt="">',
							'<img src="/css/emoticon/78.gif" alt="">',
							'<img src="/css/emoticon/79.gif" alt="">',
							'<img src="/css/emoticon/100.gif" alt="">',
							'<img src="/css/emoticon/101.gif" alt="">',
							'<img src="/css/emoticon/102.gif" alt="">',
							'<img src="/css/emoticon/103.gif" alt="">',
                            '<img src="/css/emoticon/104.gif" alt="">',
							'<img src="/css/emoticon/105.gif" alt="">',
							'<img src="/css/emoticon/106.gif" alt="">',
							'<img src="/css/emoticon/107.gif" alt="">',
							'<img src="/css/emoticon/108.gif" alt="">'
	                        );
	$similarityText = array(
							':-)',
							':-(',
							';-)',
							':d',
							';;)',
							'>:D',
							':-/',
							':x',
							':->',
							':p',
							':-*',
							'=((',
							':-O',
							'X(',
							':>',
							'B-)',							
							':-s',							
							'#:-S',							
							'>:)',							
							':((',							
							':))',							
							':|',							
							'/:)',							
							'=))',							
							'O-)',							
							':-B',							
							'=;',
							'I-)',
							'8-|',
							'L-)',
							':-&',
							':-$',
							'[-(',
							':O)',
							'8-}',
							':-P',
							'(:|',
							'=P~',
							':-?',
							'#-o',
							'=D>',
							':-SS',
							'@-)',
							':^o',
							':-w',
							':-<',
							'>:P',
							'>(>',
							':@)',
						    '3:-O',
							':(|)',
							'~:>',
							'@};-',
							'%%-',
							'**==',
							'(~~)',
							'~O)',
							'*-:)',
							'8-X',
							'=:)',
							'>-)',
							':-L',	
							'[-O',
							'$-)',
							':-"',
							'b-(',
							':)>-',
							'[-X',
							'\:D/',
							'>:/',		
							';))',
							'o->',
							'o=>',
							'o-+',
							'(%)',
							':-@',
							'^:)^',
							':-j',
							'(*)',
							':)]',
							':-c',
							'~X-(',
							':-h',
							':-t',
							'8->',
							':-??',
							'%-(',
							':o3'
	                        );
							$content = str_replace($similarityText, $emoticon , $content);
							return $content;
}
?>